package com.example.demo.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
@Slf4j
public class TestController {
    @RequestMapping("/test1")
    public void test1(){
        log.info("test1正在执行");
        System.out.println(1);
    }

    @RequestMapping("/test2")
    public void test2(){
        log.info("test2正在执行");
        System.out.println(10/0);
    }
}
